package com.central.scheduler.spi;

import com.central.scheduler.spi.register.RegistryFactory;
import com.central.scheduler.spi.task.TaskChannelFactory;

import static java.util.Collections.emptyList;

/**
 * @author Tindy
 * @date 2021/10/26
 * @describe
 */
public interface SchedulerPlugin {

    /**
     * get task plugin factory
     * @return registry factory
     */
    default Iterable<TaskChannelFactory> getTaskChannelFactorys() {
        return emptyList();
    }
    /**
     * get registry plugin factory
     * @return registry factory
     */
    default Iterable<RegistryFactory> getRegisterFactorys() {
        return emptyList();
    }
}
